package com.hnguigu.health.pojo;


import java.util.List;

public class PageVo<T> {
    private Long total;//总记录数
    private List<T> rows;//分页的数据

    @Override
    public String toString() {
        return "PageVo{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public PageVo() {
    }

    public PageVo(Long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
}
